var builder = DistributedApplication.CreateBuilder(args);
var cache = builder.AddRedis("myRedis", 63791);
var rabbitmq = builder.AddRabbitMQ("myRabbitmq");

builder.AddProject<Projects.Activity_WebApi>("activityServer").WithReference(cache).WithReference(rabbitmq);

builder.AddProject<Projects.Identity_WebApi>("identityServer").WithReference(cache).WithReference(rabbitmq);

builder.AddProject<Projects.Error_WebApi>("errorServer").WithReference(cache).WithReference(rabbitmq);

builder.AddProject<Projects.AI_WebApi>("aiServer").WithReference(cache).WithReference(rabbitmq);

builder.Build().Run();
